package fr.jade.service.fm.deployment;

import org.objectweb.fractal.api.Component;

import fr.jade.base.JadeBaseObject;

public class FakeComponentTask extends JadeBaseObject implements DeploymentTask, NewComponentTask {
  
  protected Component cmp;
  
  public FakeComponentTask(Component cmp){
    assert cmp != null;
    this.cmp=cmp;
  }

  public void execute() throws DeploymentException{ }

  public String getLevelName(){
    return "newComponent";
  }
  
  public Component getComponent()throws DeploymentException{
    return cmp;
  }
  
  public String toString(){
    return "FakeComponentTask[ cmp:" + cmp + "]";
  }
}
